/*eslint-disable */ 
import request from "@/utils/request";

export function examList(data) {
    return request({
      url: `exam/list?pageNumber=${data.pageNumber}&pagesize=${data.pagesize}`,
      method: "get",
    });
  }
  export function addExam(data) {
    return request({
      url: `/exam/addExam`,
      method: "post",
      data:data
    });
  }
  export function deleteExam(id) {
    return request({
      url: `/exam/deleteExam?id=${id}`,
      method: "post",
     
    });
  }
  export function cancelExam(id) {
    return request({
      url: `/exam/cancelExam?id=${id}`,
      method: "post",
    });
  }

  export function getInfo(id) {
    return request({
      url: `/exam/getInfo?id=${id}`,
      method: "get",
     
    });
  }
  // 考试报名
  export function takeExam(data) {
    
    return request({
      url: `/exam/takeExam`,
      method: "post",
      data:data
     
    });
  }

